package org.dromara.system.domain.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.system.domain.EmailList;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 邮件记录视图对象 email_list
 *
 * @author Gavino
 * @date 2024-11-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EmailList.class)
public class EmailListVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 邮件ID
     */
    @ExcelProperty(value = "邮件ID")
    private Long emailId;

    /**
     * 邮件类型 1: 订单支付邮件  2：订单物流邮件
     */
    private Integer type;

    /**
     * 队列ID
     */
    private Long queueId;

    /**
     * 邮件模板ID
     */
    private Long templateId;

    /**
     * 订单ID
     */
    @ExcelProperty(value = "C端订单号")
    private Long orderId;

    /**
     * B端订单号
     */
    @ExcelProperty(value = "B端订单号")
    private String orderNo;

    /**
     * 接收账号
     */
    @ExcelProperty(value = "接收账号")
    private String receiveEmail;

    /**
     * 动态参数
     */
    @ExcelProperty(value = "动态参数")
    private String dyncParam;

    /**
     * 发件人ID
     */
    private Long sendEmailId;

    /**
     * 发件人账号
     */
    @ExcelProperty(value = "发件人账号")
    private String sendEmailAct;

    /**
     * 发送时间
     */
    @ExcelProperty(value = "发送时间")
    private Date sendTime;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private Integer status;

    /**
     * 是否删除
     */
    private Integer isDelete;

    /**
     * 报错时间
     */
    @ExcelProperty(value = "报错时间")
    private Date errTime;

    /**
     * 报错内容
     */
    @ExcelProperty(value = "报错内容")
    private String errContent;

    /**
     * 创建人ID
     */
    private Long createId;

    /**
     * 创建者
     */
    private String createName;

    /**
     * 更新人ID
     */
    private Long updateId;

    /**
     * 更新者
     */
    private String updateName;

    /**
     * 创建时间
     */
    private Date createTime;


}
